#ifndef SunFont_First
#ifdef __GNUG__
#pragma interface
#endif
#define SunFont_First

#include "Font.h"

struct pixchar;
struct pixfont;
struct pixrect;

//---- SunFont -----------------------------------------------------------------

class SunFont: public Font {
	SunFont *basefont;
	pixfont *pf;         // private data
	pixrect *notdef;     // private data
public:
	SunFont(FontFamily*, int, GrFace, pixfont*, SunFont *bf);
	~SunFont();

	DevBitmap *CharAsBitmap(u_int c, Point *offset);
	pixchar *GetPixchar(u_int c);
};

//---- SunFontManager ----------------------------------------------------------

class SunFontManager: public FontManager {
	static char **VFontTable;
public:
	SunFontManager();
	~SunFontManager();
	Font *MakeFont(FontFamily*, int, GrFace, bool dflt);
	Font *ScaleFont(FontFamily *ff, int ps, GrFace face);
	Font *ScaleFont2(FontFamily *ff, int ps, GrFace face);
};

#endif

